package com.vrv.app.account;

import java.util.Calendar;

import com.vrv.app.R;

/**
 * 账号
 *
 * @author 曹保利
 *
 */
public class Account {

    /**
     * 编号
     */
    public String id;
    /**
     * 登录账号
     */
    public String loginId;
    /**
     * 密码
     */
    public String passwd;
    /**
     * 名称
     */
    public String name;
    /**
     * 邮箱
     */
    public String email;
    /**
     * 电话
     */
    public String mobilephone;
    /**
     * 头像
     */
    public String headImg;
    /**
     * 头像
     */
    public int avatar;
    /**
     * 性别
     */
    public String gender = "M";

    public Account() {
        this.id = "1";
        this.loginId = "loginId";
        this.name = "飞天网友";
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobilephone() {
        return mobilephone;
    }

    public void setMobilephone(String mobilephone) {
        this.mobilephone = mobilephone;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public int getAvatar() {
        Calendar calendar = Calendar.getInstance();
        int second = calendar.get(Calendar.MILLISECOND);
        if (second % 2 == 0) {
            avatar = R.drawable.default_comment_user_man_icon;
        } else {
            avatar = R.drawable.default_comment_user_woman_icon;
        }
        return avatar;
    }

    public void setAvatar(int avatar) {
        this.avatar = avatar;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

}